<?php
/**
 * 创业活动
 */
class ActivityApp extends CommonApp {
    //创新创业讲座
    public function chairAct(){
        $result = self::getList('chair');
        self::assign_seo('chair');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('chair'));
        $this->display('Common/index');
    }
    //创新创业大赛
    public function gameAct(){
        $result = self::getList('game');
        self::assign_seo('game');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('game'));
        $this->display('Common/index');
    }
    //创业训练项目
    public function projectAct(){
        $result = self::getList('project');
        self::assign_seo('project');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('project'));
        $this->display('Common/index');
    }
    //详情
    public function detailAct(){
        $id = I('get.id');
        if(!My::is_id($id))
            $this->ajaxReturn(404,'文章详情ID有误!');
        // $item = My::arr2var($_REQUEST,'item');
        $result = self::detail($id);
        $this->assign('result',$result);
        $this->assign('menu',self::menu($result['item']));
        $this->display('Common/detail');
    }
}